package com.example.stlink.model.request;

import androidx.annotation.NonNull;

import java.io.Serializable;

/**
 * 创建课程签到请求类
 */
public class CourseCreateSignRequest implements Serializable {

    /**
     * 签到开始时间(时间戳，精确到毫秒)
     */
    private Long beginTime;

    /**
     * 上课地点
     */
    private String courseAddr;

    /**
     * 课程的主键id【可前往未结课的科恒列表获取】
     */
    private Long courseId;

    /**
     * 课程名
     */
    private String courseName;

    /**
     * 签到结束时间（时间戳，精确到毫秒）
     */
    private Long endTime;

    /**
     * 签到码
     */
    private Long signCode;

    /**
     * 选课人数
     */
    private Long total;

    /**
     * 发起签到的用户id
     */
    private Long userId;

    public Long getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Long beginTime) {
        this.beginTime = beginTime;
    }

    public String getCourseAddr() {
        return courseAddr;
    }

    public void setCourseAddr(String courseAddr) {
        this.courseAddr = courseAddr;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public Long getEndTime() {
        return endTime;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    public Long getSignCode() {
        return signCode;
    }

    public void setSignCode(Long signCode) {
        this.signCode = signCode;
    }

    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    @NonNull
    @Override
    public String toString() {
        return "CourseCreateSignRequest{" +
                "beginTime=" + beginTime +
                ", courseAddr='" + courseAddr + '\'' +
                ", courseId=" + courseId +
                ", courseName='" + courseName + '\'' +
                ", endTime=" + endTime +
                ", signCode=" + signCode +
                ", total=" + total +
                ", userId=" + userId +
                '}';
    }
}
